<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>梦幻西游数字资产管理系统 - 账号管理</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        .container {
            display: flex;
            min-height: 100vh;
        }
        
        /* 侧边栏 */
        .sidebar {
            width: 220px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            padding: 20px 0;
        }
        
        .logo {
            text-align: center;
            padding: 20px;
            font-size: 20px;
            font-weight: bold;
            color: #667eea;
            border-bottom: 2px solid #f0f0f0;
            margin-bottom: 20px;
        }
        
        .nav-menu {
            list-style: none;
        }
        
        .nav-item {
            padding: 15px 30px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            color: #333;
        }
        
        .nav-item:hover {
            background: #f5f5f5;
            border-left: 4px solid #667eea;
            padding-left: 26px;
        }
        
        .nav-item.active {
            background: #667eea;
            color: white;
            border-left: 4px solid #764ba2;
        }
        
        .nav-icon {
            margin-right: 10px;
            font-size: 18px;
        }
        
        /* 主内容区 */
        .main-content {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
        }
        
        .header {
            background: white;
            padding: 20px 30px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .header h1 {
            color: #333;
            font-size: 24px;
        }
        
        .header-actions {
            display: flex;
            gap: 10px;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .btn-secondary {
            background: white;
            color: #667eea;
            border: 2px solid #667eea;
        }
        
        .btn-secondary:hover {
            background: #667eea;
            color: white;
        }
        
        /* 搜索和筛选 */
        .filters {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .search-box {
            flex: 1;
            min-width: 300px;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 10px 40px 10px 15px;
            border: 2px solid #e8e8e8;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .search-box input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .search-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }
        
        .filter-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .filter-label {
            color: #666;
            font-size: 14px;
            white-space: nowrap;
        }
        
        select {
            padding: 8px 15px;
            border: 2px solid #e8e8e8;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
        }
        
        /* 账号表格 */
        .table-container {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        th {
            padding: 15px;
            text-align: left;
            font-weight: 500;
            font-size: 14px;
        }
        
        tbody tr {
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.3s;
        }
        
        tbody tr:hover {
            background: #f9f9f9;
        }
        
        td {
            padding: 15px;
            font-size: 14px;
            color: #333;
        }
        
        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-active {
            background: #e6f7e6;
            color: #52c41a;
        }
        
        .status-inactive {
            background: #fff1f0;
            color: #f5222d;
        }
        
        .status-expired {
            background: #fff7e6;
            color: #faad14;
        }
        
        .account-type {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            background: #f0f5ff;
            color: #597ef7;
        }
        
        .actions {
            display: flex;
            gap: 10px;
        }
        
        .action-link {
            color: #667eea;
            text-decoration: none;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .action-link:hover {
            color: #764ba2;
            text-decoration: underline;
        }
        
        .action-link.delete {
            color: #f5222d;
        }
        
        .action-link.delete:hover {
            color: #cf1322;
        }
        
        /* 分页 */
        .pagination {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .page-info {
            color: #666;
            font-size: 14px;
        }
        
        .page-controls {
            display: flex;
            gap: 5px;
        }
        
        .page-btn {
            padding: 8px 12px;
            border: 1px solid #d9d9d9;
            background: white;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.3s;
        }
        
        .page-btn:hover {
            border-color: #667eea;
            color: #667eea;
        }
        
        .page-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        /* 模态框 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal.show {
            display: flex;
        }
        
        .modal-content {
            background: white;
            border-radius: 10px;
            padding: 30px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .modal-header {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 500;
        }
        
        .form-input {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #e8e8e8;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .form-input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .form-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 30px;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 侧边栏 -->
        <div class="sidebar">
            <div class="logo">⚔️ 梦幻资管系统</div>
            <ul class="nav-menu">
                <li class="nav-item" onclick="location.href='index.html'">
                    <span class="nav-icon">🏠</span>
                    <span>首页仪表盘</span>
                </li>
                <li class="nav-item active">
                    <span class="nav-icon">👤</span>
                    <span>账号管理</span>
                </li>
                <li class="nav-item" onclick="location.href='roles.html'">
                    <span class="nav-icon">🎮</span>
                    <span>角色管理</span>
                </li>
                <li class="nav-item" onclick="location.href='tasks.html'">
                    <span class="nav-icon">📋</span>
                    <span>任务中心</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">💰</span>
                    <span>资产管理</span>
                </li>
                <li class="nav-item" onclick="location.href='statistics.html'">
                    <span class="nav-icon">📊</span>
                    <span>数据统计</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">⚙️</span>
                    <span>系统设置</span>
                </li>
            </ul>
        </div>
        
        <!-- 主内容区 -->
        <div class="main-content">
            <!-- 头部 -->
            <div class="header">
                <h1>👤 账号管理</h1>
                <div class="header-actions">
                    <button class="btn btn-secondary">
                        <span>📤</span>
                        <span>导出数据</span>
                    </button>
                    <button class="btn btn-primary" onclick="showModal()">
                        <span>➕</span>
                        <span>添加账号</span>
                    </button>
                </div>
            </div>
            
            <!-- 搜索和筛选 -->
            <div class="filters">
                <div class="search-box">
                    <input type="text" placeholder="搜索账号名、服务器...">
                    <span class="search-icon">🔍</span>
                </div>
                <div class="filter-group">
                    <span class="filter-label">账号类型：</span>
                    <select>
                        <option>全部</option>
                        <option>主号</option>
                        <option>小号</option>
                        <option>商人号</option>
                    </select>
                </div>
                <div class="filter-group">
                    <span class="filter-label">状态：</span>
                    <select>
                        <option>全部</option>
                        <option>正常</option>
                        <option>过期</option>
                        <option>封禁</option>
                    </select>
                </div>
                <div class="filter-group">
                    <span class="filter-label">服务器：</span>
                    <select>
                        <option>全部</option>
                        <option>紫禁城</option>
                        <option>将军阁</option>
                        <option>钓鱼岛</option>
                    </select>
                </div>
            </div>
            
            <!-- 账号表格 -->
            <div class="table-container">
                <table>
                    <thead>
                        <tr>
                            <th>账号</th>
                            <th>服务器</th>
                            <th>账号类型</th>
                            <th>角色数量</th>
                            <th>点卡到期</th>
                            <th>状态</th>
                            <th>最后登录</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><strong>zhangsan001</strong></td>
                            <td>紫禁城</td>
                            <td><span class="account-type">主号</span></td>
                            <td>5个角色</td>
                            <td>2025-10-15</td>
                            <td><span class="status-badge status-active">正常</span></td>
                            <td>2025-10-03 09:30</td>
                            <td>
                                <div class="actions">
                                    <a class="action-link">查看</a>
                                    <a class="action-link">编辑</a>
                                    <a class="action-link delete">删除</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>lisi_game</strong></td>
                            <td>紫禁城</td>
                            <td><span class="account-type">小号</span></td>
                            <td>3个角色</td>
                            <td>2025-10-05</td>
                            <td><span class="status-badge status-expired">即将过期</span></td>
                            <td>2025-10-02 18:45</td>
                            <td>
                                <div class="actions">
                                    <a class="action-link">查看</a>
                                    <a class="action-link">编辑</a>
                                    <a class="action-link delete">删除</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>wangwu_merchant</strong></td>
                            <td>将军阁</td>
                            <td><span class="account-type">商人号</span></td>
                            <td>2个角色</td>
                            <td>2025-11-20</td>
                            <td><span class="status-badge status-active">正常</span></td>
                            <td>2025-10-03 07:15</td>
                            <td>
                                <div class="actions">
                                    <a class="action-link">查看</a>
                                    <a class="action-link">编辑</a>
                                    <a class="action-link delete">删除</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>zhaoliu_sub</strong></td>
                            <td>钓鱼岛</td>
                            <td><span class="account-type">小号</span></td>
                            <td>4个角色</td>
                            <td>2025-10-25</td>
                            <td><span class="status-badge status-active">正常</span></td>
                            <td>2025-10-01 22:30</td>
                            <td>
                                <div class="actions">
                                    <a class="action-link">查看</a>
                                    <a class="action-link">编辑</a>
                                    <a class="action-link delete">删除</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>sunqi_main</strong></td>
                            <td>紫禁城</td>
                            <td><span class="account-type">主号</span></td>
                            <td>6个角色</td>
                            <td>2025-09-30</td>
                            <td><span class="status-badge status-inactive">已过期</span></td>
                            <td>2025-09-28 16:20</td>
                            <td>
                                <div class="actions">
                                    <a class="action-link">查看</a>
                                    <a class="action-link">编辑</a>
                                    <a class="action-link delete">删除</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>zhouба_alt</strong></td>
                            <td>将军阁</td>
                            <td><span class="account-type">小号</span></td>
                            <td>3个角色</td>
                            <td>2025-12-01</td>
                            <td><span class="status-badge status-active">正常</span></td>
                            <td>2025-10-03 10:05</td>
                            <td>
                                <div class="actions">
                                    <a class="action-link">查看</a>
                                    <a class="action-link">编辑</a>
                                    <a class="action-link delete">删除</a>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            
            <!-- 分页 -->
            <div class="pagination">
                <div class="page-info">显示 1-6 条，共 12 条记录</div>
                <div class="page-controls">
                    <button class="page-btn">上一页</button>
                    <button class="page-btn active">1</button>
                    <button class="page-btn">2</button>
                    <button class="page-btn">下一页</button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 添加账号模态框 -->
    <div class="modal" id="addModal">
        <div class="modal-content">
            <div class="modal-header">➕ 添加新账号</div>
            <form>
                <div class="form-group">
                    <label class="form-label">账号名称 *</label>
                    <input type="text" class="form-input" placeholder="请输入账号名称">
                </div>
                <div class="form-group">
                    <label class="form-label">密码 *</label>
                    <input type="password" class="form-input" placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label class="form-label">服务器 *</label>
                    <select class="form-input">
                        <option>请选择服务器</option>
                        <option>紫禁城</option>
                        <option>将军阁</option>
                        <option>钓鱼岛</option>
                        <option>花果山</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="form-label">账号类型 *</label>
                    <select class="form-input">
                        <option>主号</option>
                        <option>小号</option>
                        <option>商人号</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="form-label">将军令</label>
                    <input type="text" class="form-input" placeholder="请输入将军令（选填）">
                </div>
                <div class="form-group">
                    <label class="form-label">点卡到期时间</label>
                    <input type="date" class="form-input">
                </div>
                <div class="form-group">
                    <label class="form-label">备注</label>
                    <input type="text" class="form-input" placeholder="备注信息（选填）">
                </div>
                <div class="form-actions">
                    <button type="button" class="btn btn-secondary" onclick="hideModal()">取消</button>
                    <button type="submit" class="btn btn-primary">保存</button>
                </div>
            </form>
        </div>
    </div>
    
    <script>
        function showModal() {
            document.getElementById('addModal').classList.add('show');
        }
        
        function hideModal() {
            document.getElementById('addModal').classList.remove('show');
        }
        
        // 点击模态框外部关闭
        document.getElementById('addModal').addEventListener('click', function(e) {
            if (e.target === this) {
                hideModal();
            }
        });
    </script>
</body>
</html>
